package com.example.alpho;

import org.mybatis.spring.mapper.MapperScannerConfigurer;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;

@SpringBootApplication
//@MapperScan("com.example.alpho.mapper")
public class AlphoApplication {

	public static void main(String[] args) {
		SpringApplication.run(AlphoApplication.class, args);
	}

	@Bean
	public static MapperScannerConfigurer setBasePackage() {
//		logger.info("Application setBasePackage");
		MapperScannerConfigurer mapperScannerConfigurer = new MapperScannerConfigurer();
		mapperScannerConfigurer.setBasePackage("com.example.alpho.mapper");
		return mapperScannerConfigurer;
	}
}
